package com.jy.adscm.operation.hscrb.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-12-18
 */
public class FsCrushdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "DID", type = IdType.AUTO)
    private Integer did;
    private String tid;
    private String detailname;
    private String batchnums;
    private String type;
    private Double plannums;
    private String planunit;
    private String planboxnums;
    private String customer;
    @TableField(exist = false)
    private String customerName;
    private Date begintime;
    private Date beginaddtime;
    private String needer;
    @TableField(exist = false)
    private String neederName;
    private Integer neednums;
    private String needunit;
    private String needboxnums;
    private Integer exceptionnums;
    private String exceptionunit;
    private String exceptionboxnums;
    private Date starttime;
    private Date endtime;
    private Date overaddtime;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getNeederName() {
        return neederName;
    }

    public void setNeederName(String neederName) {
        this.neederName = neederName;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getDetailname() {
        return detailname;
    }

    public void setDetailname(String detailname) {
        this.detailname = detailname;
    }

    public String getBatchnums() {
        return batchnums;
    }

    public void setBatchnums(String batchnums) {
        this.batchnums = batchnums;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getPlannums() {
        return plannums;
    }

    public void setPlannums(Double plannums) {
        this.plannums = plannums;
    }

    public String getPlanunit() {
        return planunit;
    }

    public void setPlanunit(String planunit) {
        this.planunit = planunit;
    }

    public String getPlanboxnums() {
        return planboxnums;
    }

    public void setPlanboxnums(String planboxnums) {
        this.planboxnums = planboxnums;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getBegintime() {
        return begintime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getBeginaddtime() {
        return beginaddtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setBeginaddtime(Date beginaddtime) {
        this.beginaddtime = beginaddtime;
    }

    public String getNeeder() {
        return needer;
    }

    public void setNeeder(String needer) {
        this.needer = needer;
    }

    public Integer getNeednums() {
        return neednums;
    }

    public void setNeednums(Integer neednums) {
        this.neednums = neednums;
    }

    public String getNeedunit() {
        return needunit;
    }

    public void setNeedunit(String needunit) {
        this.needunit = needunit;
    }

    public String getNeedboxnums() {
        return needboxnums;
    }

    public void setNeedboxnums(String needboxnums) {
        this.needboxnums = needboxnums;
    }

    public Integer getExceptionnums() {
        return exceptionnums;
    }

    public void setExceptionnums(Integer exceptionnums) {
        this.exceptionnums = exceptionnums;
    }

    public String getExceptionunit() {
        return exceptionunit;
    }

    public void setExceptionunit(String exceptionunit) {
        this.exceptionunit = exceptionunit;
    }

    public String getExceptionboxnums() {
        return exceptionboxnums;
    }

    public void setExceptionboxnums(String exceptionboxnums) {
        this.exceptionboxnums = exceptionboxnums;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStarttime() {
        return starttime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndtime() {
        return endtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOveraddtime() {
        return overaddtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOveraddtime(Date overaddtime) {
        this.overaddtime = overaddtime;
    }

    @Override
    public String toString() {
        return "FsCrushdetail{" +
                "did=" + did +
                ", tid='" + tid + '\'' +
                ", detailname='" + detailname + '\'' +
                ", batchnums='" + batchnums + '\'' +
                ", type='" + type + '\'' +
                ", plannums=" + plannums +
                ", planunit='" + planunit + '\'' +
                ", planboxnums='" + planboxnums + '\'' +
                ", customer='" + customer + '\'' +
                ", customerName='" + customerName + '\'' +
                ", begintime=" + begintime +
                ", beginaddtime=" + beginaddtime +
                ", needer='" + needer + '\'' +
                ", neederName='" + neederName + '\'' +
                ", neednums=" + neednums +
                ", needunit='" + needunit + '\'' +
                ", needboxnums='" + needboxnums + '\'' +
                ", exceptionnums=" + exceptionnums +
                ", exceptionunit='" + exceptionunit + '\'' +
                ", exceptionboxnums='" + exceptionboxnums + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", overaddtime=" + overaddtime +
                '}';
    }
}
